from django.conf.urls import url
from . import views
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns = [
    url(r'^usernames/(?P<username>\w{5,20})/count/$', views.RegisterUsernameCountAPIView.as_view()),
    url(r'^phones/(?P<mobile>1[3-9]\d{9})/count/$',views.RegisterPhoneCountAPIView.as_view()),
    #users/auths
    url(r'^auths/$', obtain_jwt_token, name='auths'),
    url(r'^$',views.RegisterUserView.as_view()),
    url(r'^infos/$',views.UserDetailView.as_view()),
    url(r'^emails/$',views.EmailView.as_view()),
    url(r'^list/$',views.UserListView.as_view()),
    url(r'^emails/verification/$',views.EmailActiveView.as_view()),
    url(r'^browerhistories/$', views.UserHistoryView.as_view()),
]
